<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>入库管理</title>
<meta name="decorator" content="default" />
<style type="text/css">
#inventoryTypeForm label {
	display: block;
}
</style>
</head>
<body>
	<div class="container">
		<div class="icon-buttons">
			<a data-role="button" data-inline="true" data-icon="back"
				data-iconpos="notext" href="${ctx}/inventory/in">返回</a>
		</div>
		<h2 style="text-align: center;">进货入库产品明细</h2>
		入库日期：【${fns:formatDate(details[0].storeInventoryIn.inDate,'yyyy-MM-dd
		HH:mm:ss')}】，入库人：【${inventoryIn.employee.name}】<br />
		<table id="detailTable" data-role="table"
			class="ui-responsive table-stroke">
			<thead>
				<tr>
					<th colspan="5" style="text-align:center;">进货入库产品明细</th>
				</tr>
				<tr>
					<th>产品分类</th>
					<th>入库产品</th>
					<th>规格</th>
					<th>入库数量</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${details}" var="storeInventoryInDetail">
					<tr>
						<c:if
							test="${ storeInventoryInDetail.storeProduct.product_type==0}">
							<td>${
								storeInventoryInDetail.storeProduct.product.productCategory.name}</td>
							<td>${ storeInventoryInDetail.storeProduct.product.name}</td>
							<td>${ storeInventoryInDetail.storeProduct.product.spec}</td>
						</c:if>
						<c:if
							test="${ storeInventoryInDetail.storeProduct.product_type==1}">
							<td>${
								storeInventoryInDetail.storeProduct.storeSelfProduct.storeSelfProductCategory.name}</td>
							<td>${
								storeInventoryInDetail.storeProduct.storeSelfProduct.name}</td>
							<td>${
								storeInventoryInDetail.storeProduct.storeSelfProduct.spec}</td>
						</c:if>
						<td>${storeInventoryInDetail.amount}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
	<script type="text/javascript">
		global.bossPassword = "${fns:getStore().bossPassword}";
		$(document).ready(function() {
			$("#contentTable tbody tr").click(function() {
				$("#contentTable tbody tr").removeClass("select_active");
				$(this).addClass("select_active");
			});
		});
		function page(n, s) {
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</body>
</html>
